<extend name="public/base" />
<block name="style">
</block>
<block name="body">
<div class="layui-card qn-header">
	<div class="layui-breadcrumb">
		<a href="">首页</a>
		<a href="">钩子列表</a>
	</div>
</div>
<div class="layui-fluid">
	<div class="layui-card">
		<div class="layui-card-body">

			<div class="portlet-title">
				<div class="actions" >
						<?php if (IS_ROOT): ?>
							<a href="{:U('edithook')}" class="layui-btn layui-btn-xs fbutton">新 增</a>
						<?php endif ?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="portlet-body">
				<div class="table-scrollable">
					<table class="layui-table" lay-even lay-skin="line">
						<thead>
						<tr>
						<th>ID</th>
						<th>名称</th>
						<th>描述</th>
						<th>类型</th>
						<th>操作</th>
						</tr>
						</thead>
						<tbody>
							<volist name="list" id="vo">
								<tr>
									<td>{$vo.id}</td>
									<td><a href="{:U('edithook?id='.$vo['id'])}">{$vo.name}</a></td>
									<td>{$vo.description}</td>
									<td>{$vo.type_text}</td>
									<td>
										<a title="编辑" class="layui-btn layui-btn-xs hbutton btn_edit" href="{:U('edithook?id='.$vo['id'])}">编辑</a>
										<a class="layui-btn layui-btn-xs hbutton btn_trash ajax-get" title="删除" href="{:U('delhook?id='.$vo['id'])}">删除</a>
									</td>
								</tr>
								</volist>
						</tbody>
					</table>
				</div>
				<div class="layui-table-page">
					{$_page}
				</div>
			</div>
		</div>
	</div>
</div>
</block>

<block name="script">
</block>
<block name="jquery_script">
</block>